package com.lxq.www.feigntemplate;

import com.lxq.www.feigntemplate.impl.MonitorRestImpl;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

@FeignClient(name = "CLOUD-MONITOR",fallback = MonitorRestImpl.class)
public interface MonitorRestInterface {

    @GetMapping("/hello2")
    String hello2();

    @GetMapping("/sleep_req")
    String reqSleep();

    @GetMapping("/sleep_req_out")
    String reqOut();

    @GetMapping("/sleep_req_out_2")
    String reqOutForHystrix();

    @GetMapping("/sleep_req_out_2")
    String reqOutForMyself();
}
